<template>
    <div class="map">
        <div id="container" style="height:600px;"></div>
    </div>
</template>

<script>
export default {
    methods:{
        //获取用户所在城市信息
        showCityInfo() {
            var map = new AMap.Map("container", {
                resizeEnable: true,
                center: [116.39, 39.9],
                zoom: 8
            });
        }
        
    },
    mounted(){
        this.showCityInfo()
    }
}
</script>